 <template>
  <div>
    <!-- 传参 -->
    <Com :list="arr"></Com>
    <Ci :list="arr"></Ci>
  </div>
</template>
 <script>
import Coma1 from "./Coma1.vue";
import Ci from "@/elm/city.vue";
export default {
  components: {
    Com: Coma1,
    Ci: Ci,
  },
  data() {
    return {
      title: "首页-详情",
      arr: [],
    };
  },
  mounted() {
    this.axios
      .get("https://api.it120.cc/small4/shop/goods/category/all")
      .then((res) => {
        this.arr = res.data.data;
      });
  },
  methods: {},
  computed: {},
};
</script>
 <style lang='css'>
</style>